<?php include './pages/reportMenu.php'; ?>
<div class = "mainContent">
		<form action="./system/action/viewSales.php" method="POST">
			Select Date: <input type="text" name="orderDate" class="datePicker"/>
			<input type="submit" value="view Sales"/>
		</form>
		<?php
		if(isset($_SESSION['error']) && $_SESSION['error'] != ""){ ?>
			<div class="error">
				<?php echo $_SESSION['error']; ?>
			</div>
		<?php } else if(isset($_SESSION['success']) && $_SESSION['success'] != ""){?>
			<div class="success">
				<?php// echo $_SESSION['success']; ?>
			</div>
		<?php }?>
	<div class = "salesTable">
		<?php 
		if(isset($_SESSION['sales'])){
			echo $_SESSION['sales'];
			unset($_SESSION['sales']);
		}?>
	</div>
</div>